package com.yangzb;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author: yangzb
 * @date 2023/1/3 2:42 PM
 **/
@EqualsAndHashCode
@Getter
@Setter
public class Result {
    public boolean isSuccess() {
        return failedList.size()==0;
    }

    private Set<TaskInfo> successList = new HashSet<>();
    private Set<TaskInfo> failedList = new HashSet();
    private int taskCount;
}
